.class final Lnet/tsapps/topdeals/g;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lnet/tsapps/topdeals/DetailActitivty;

.field private final synthetic b:J

.field private final synthetic c:Ljava/lang/String;

.field private final synthetic d:Ljava/lang/String;

.field private final synthetic e:Lnet/tsapps/topdeals/b/l;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DetailActitivty;JLjava/lang/String;Ljava/lang/String;Lnet/tsapps/topdeals/b/l;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    iput-wide p2, p0, Lnet/tsapps/topdeals/g;->b:J

    iput-object p4, p0, Lnet/tsapps/topdeals/g;->c:Ljava/lang/String;

    iput-object p5, p0, Lnet/tsapps/topdeals/g;->d:Ljava/lang/String;

    iput-object p6, p0, Lnet/tsapps/topdeals/g;->e:Lnet/tsapps/topdeals/b/l;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 5

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v0}, Lnet/tsapps/topdeals/DetailActitivty;->e(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    iget-wide v1, p0, Lnet/tsapps/topdeals/g;->b:J

    iget-object v3, p0, Lnet/tsapps/topdeals/g;->c:Ljava/lang/String;

    iget-object v4, p0, Lnet/tsapps/topdeals/g;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2, v3, v4}, Lnet/tsapps/topdeals/h/a;->a(JLjava/lang/String;Ljava/lang/String;)Lnet/tsapps/topdeals/objects/e;

    move-result-object v0

    iget-object v1, v0, Lnet/tsapps/topdeals/objects/e;->a:Ljava/util/List;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lnet/tsapps/topdeals/objects/e;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v1}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v1

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    iget-object v1, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    invoke-static {v1}, Lnet/tsapps/topdeals/DetailActitivty;->d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;

    move-result-object v1

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    iget-object v2, v0, Lnet/tsapps/topdeals/objects/e;->a:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    iget-object v1, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    new-instance v2, Lnet/tsapps/topdeals/b;

    iget-object v3, p0, Lnet/tsapps/topdeals/g;->e:Lnet/tsapps/topdeals/b/l;

    invoke-direct {v2, p0, v3, v0}, Lnet/tsapps/topdeals/b;-><init>(Lnet/tsapps/topdeals/g;Lnet/tsapps/topdeals/b/l;Lnet/tsapps/topdeals/objects/e;)V

    invoke-virtual {v1, v2}, Lnet/tsapps/topdeals/DetailActitivty;->runOnUiThread(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    iget-object v1, p0, Lnet/tsapps/topdeals/g;->a:Lnet/tsapps/topdeals/DetailActitivty;

    new-instance v2, Lnet/tsapps/topdeals/c;

    iget-object v3, p0, Lnet/tsapps/topdeals/g;->e:Lnet/tsapps/topdeals/b/l;

    invoke-direct {v2, p0, v3, v0}, Lnet/tsapps/topdeals/c;-><init>(Lnet/tsapps/topdeals/g;Lnet/tsapps/topdeals/b/l;Lnet/tsapps/topdeals/g/a;)V

    invoke-virtual {v1, v2}, Lnet/tsapps/topdeals/DetailActitivty;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method
